#!/usr/pkg/bin/bash
#
runtime_b = 4800
echo "bubble sort vC ../alice.txt"
mypid=$$
time ./tp1_c -b ../alice.txt > out.txt &
cpid=$!
sleep $runtime_b
kill -s SIGTERM $cpid
#
echo "bubble sort vC ../beowulf.txt"
mypid=$$
time ./tp1_c -b ../beowulf.txt > out.txt &
cpid=$!
sleep $runtime_b
kill -s SIGTERM $cpid
#
echo "bubble sort vC ../cyclopedia.txt"
mypid=$$
time ./tp1_c -b ../cyclopedia.txt > out.txt &
cpid=$!
sleep $runtime_b
kill -s SIGTERM $cpid
#
echo "bubble sort vC ../elquijote.txt"
mypid=$$
time ./tp1_c -b ../elquijote.txt > out.txt &
cpid=$!
sleep $runtime_b
kill -s SIGTERM $cpid
#########################################################
#
echo "bubble sort vA ../alice.txt"
mypid=$$
time ./tp1_a -b ../alice.txt > out.txt &
cpid=$!
sleep $runtime_b
kill -s SIGTERM $cpid
#
echo "bubble sort vA ../beowulf.txt"
mypid=$$
time ./tp1_a -b ../beowulf.txt > out.txt &
cpid=$!
sleep $runtime_b
kill -s SIGTERM $cpid
#
echo "bubble sort vA ../cyclopedia.txt"
mypid=$$
time ./tp1_a -b ../cyclopedia.txt > out.txt &
cpid=$!
sleep $runtime_b
kill -s SIGTERM $cpid
#
echo "bubble sort vA ../elquijote.txt"
mypid=$$
time ./tp1_a -b ../elquijote.txt > out.txt &
cpid=$!
sleep $runtime_b
kill -s SIGTERM $cpid
############################################################
